package com.example.basic;

public class Product {
  private final int mId;
  private final String mName;
  private final float mPrice;
  private final String mDescription;

  public Product(int id) {
    mId = id;
    mName = "Product #" + mId;
    mPrice = 500;
    mDescription = "This is the default product description.";
  }

  public String getDescription() {
    return mDescription;
  }

  public int getId() {
    return mId;
  }

  public String getName() {
    return mName;
  }

  public float getPrice() {
    return mPrice;
  }

  @Override
  public String toString() {
    return mName + mId;
  }
}
